package com.zy.web.demo.duoxiancheng.demo19;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/19 15:42
 */
public class ThreadB19 extends Thread{

    private Consumer consumer;

    public ThreadB19(Consumer consumer){
        this.consumer  = consumer;
    }

    @Override
    public void run() {
        super.run();
        while (true){
            consumer.getValue();
        }
    }
}
